<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>运营后台-权限管理</title>
<%--公共jsp,包含通用css样式和js引用 --%>
<%@ include file="/WEB-INF/pages/common/common.jsp"%>
<script type="text/javascript">
	/**权限设置**/
	var p_create=false, p_update=false, p_read=false, p_delete=false;
	<shiro:hasPermission name="system:permission:create">
		p_create = true;
	</shiro:hasPermission>
	<shiro:hasPermission name="system:permission:update">
		p_update = true;
	</shiro:hasPermission>
	<shiro:hasPermission name="system:permission:read">
		p_read = true;
	</shiro:hasPermission>
	<shiro:hasPermission name="system:permission:delete">
		p_delete = true;
	</shiro:hasPermission>
</script>
<script type="text/javascript"
	src="${base}/js/pages/system/permission.js?v=1"></script>
</head>
<body>
	<input class="refresh-page" type="button" value="刷新页面"
		onclick="window.location.reload()" />
	<div id="search" class="search_bar">
		<form id="search_form" onsubmit="return false;"> 
			<div class="search-row">
				<span class="search-item"> 名称：<input id="search_LIKE_name"
					name="search_LIKE_name" type="text" />
					
				</span>
				<span class="search-item"> 权限字符：<input id="search_LIKE_name"
					name="search_LIKE_permission" type="text" />
					
				</span> 
				 <input class="search_btn" type="button" value="搜索" />
			</div>
		</form>
	</div>
	<div id="data_gird"></div>
	<div id="dialogs" class="none">
		<div id="permission_dialog" class="dialog">
			<div class="content">
				<form method="post">
					<input type="hidden" name="id"> 
					<input type="hidden" name="version">
					<table>
						<tr>
							<td class="field">名称:</td>
							<td><input type="text" name="name"></input></td>
						</tr>
						<tr>
							<td class="field">分组号:</td>
							<td><input type="text" name="groups"></input></td>
						</tr>
						<tr>
							<td class="field">权限字符:</td>
							<td><input type="text" name="permission" value="" class="w150"></input></td>
						</tr>
						<tr>
							<td class="field">描述:</td>
							<td><textarea name="description" class="w150"></textarea></td>
						</tr>
						 
					</table>
				</form>
			</div>
		</div>
		<div id="permission_batch_dialog" class="dialog">
			<div class="content">
				<form method="post">
					<input type="hidden" name="id">
					<table>
						<tr>
							<td class="field">名称前缀:</td>
							<td><input type="text" name="namePrefix"></input></td>
						</tr>
						<tr>
							<td class="field">权限字符前缀:</td>
							<td><input type="text" name="permissionPrefix" class="w150"></input></td>
						</tr>
					</table>
					<div>
						例:名称前缀=系统菜单，权限字符前缀=system:menu，将自动创建4条权限<br>
							系统菜单创建  system:menu:create<br>
							系统菜单修改  system:menu:update<br>
							系统菜单查看  system:menu:read<br>
							系统菜单删除  system:menu:delete<br>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>